let serverUrl = 'http://119.96.123.100';
// let serverUrl = 'http://localhost';
let serverPort = '9527';
let serverName = '/module';

let specialGroupIndex = 1;
let companyEmissionIndex = 2;
let deviceEmissionIndex = 3;
let deviceOtherEmissionIndex = 4;
let alarmReportIndex = 5;

(function() {
	if (typeof WeixinJSBridge == "object" && typeof WeixinJSBridge.invoke == "function") {
		handleFontSize();
	} else {
		document.addEventListener("WeixinJSBridgeReady", handleFontSize, false);
	}

	function handleFontSize() {
		// 设置网页字体为默认大小
		WeixinJSBridge.invoke('setFontSizeCallback', {
			'fontSize': 0
		});
		
		// 重写设置网页字体大小的事件
		WeixinJSBridge.on('menu:setfont', function() {
			WeixinJSBridge.invoke('setFontSizeCallback', {
				'fontSize': 0
			});
		});
	}
})();